Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary http client creation #480

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

jimmyjames
Copy link
Contributor

The AuthAPI client builder set the value of the httpClient to an instantiated http client, which could then be overridden by callers. This would result in unnecessarily creating an httpClient if it were to be overridden; this change fixes that by only creating an httpClient if one was not specified.

@jimmyjames jimmyjames marked this pull request as ready for review December 7, 2022 01:20
@jimmyjames jimmyjames requested a review from a team as a code owner December 7, 2022 01:20
@jimmyjames jimmyjames merged commit 2a545c3 into v2-dev Dec 7, 2022
@jimmyjames jimmyjames deleted the avoid-unneccessary-http-client-creation branch December 7, 2022 16:51
poovamraj pushed a commit that referenced this pull request Jan 19, 2023
Avoid unnecessarily creating an http client when configuring the AuthAPI cient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants